package com.sayice.icepusher.util.thread;

import java.util.concurrent.*;

/**
 * 线程池工具类
 *
 * @author shubing
 */
public class ThreadPoolUtils {
    public static final ExecutorService executorService = new ThreadPoolExecutor(
            5,
            20,
            30L,
            TimeUnit.SECONDS,
            new ArrayBlockingQueue<>(5),
            Executors.defaultThreadFactory(),
            new ThreadPoolExecutor.CallerRunsPolicy()
    );
    
    private ThreadPoolUtils() {
    }
}